package com.googlecode.lookie.platform.image.io;

import java.awt.Image;

import com.googlecode.lookie.platform.image.resource.Resource;
import com.googlecode.lookie.platform.image.resource.ResourceException;

public interface Reader
{

    String getName();

    /**
     * A reader is responsible for closing the input stream before returning from this method.
     *
     * @param resource
     * @return
     * @throws ReaderException
     * @throws ResourceException
     */
    Image read( Resource resource )
        throws ReaderException;

}
